%REM The following code is in sample1 of deser-50.txt. When processing the firstName label in the JSON object, the JsonSetterConverter will be used to call the setName sub, passing the current value (the first name) as the first parameter and the lastName, a sibling of the firstName element in the JSON object, as the second parameter. %END REM Dim jsonObj as JsonObject 'populate accordingly Dim converter as New JsonSetterConverter Dim mainHolder as New Person() Call converter.forSetter("setName").withValueParam().withSiblingParam("lastName", "") Dim helper as New JsonConversionHelper() Call helper.withCustomConverter("firstName", converter) Call converter.deserialize(mainHolder, jsonObj) |